<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>你的考试</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 引入 Bootstrap -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <style>
        .d{
            display: flex;
            align-content: center;
            justify-content: center;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span12">
                <ul class="breadcrumb">
                    <li>
                        <a href="${pageContext.request.contextPath}/cs">考前测试</a> <span class="divider">/</span>
                    </li>
                    <li>
                        <a href="${pageContext.request.contextPath}/bm">报名考试</a> <span class="divider">/</span>
                    </li>
                    <li>
                        <a href="${pageContext.request.contextPath}/wd">我的考试</a> <span class="divider">/</span>
                    </li>
                    <%--显示错题--%>
                    <li>
                        <a href="${pageContext.request.contextPath}/ct">错题本</a> <span class="divider">/</span>
                    </li>
                    <%--显示做得好的名称的那一夜--%>
                    <li>
                        <a href="${pageContext.request.contextPath}/phb">排行榜</a> <span class="divider">/</span>
                    </li>
                    <%--推到index,销毁session--%>
                    <li>
                        <a href="${pageContext.request.contextPath}/loginout">注销</a> <span class="divider">/</span>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span12">
                <h3 class="text-center text-success ">
                    ${msg}
                </h3>
            </div>
        </div>
    </div>
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span12">
                <h3 class="text-center text-success ">
                    日期${exam.DAYS}
                </h3>
                <h3 class="text-center text-success">
                    时间${exam.TIMES}
                </h3>
                <h3 class="text-center text-success">
                    地点${exam.PLACE}
                </h3>
                <h3 class="text-center text-success">
                    准考证号${exam.PASSNUM}
                </h3>
                <h3 class="text-center text-success">
                    密码${exam.PASSPWD}
                </h3>
            </div>
        </div>
    </div>
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span12">
                <h3 class="text-center text-success" style="color: darkred">
                    <a title="恶魔微笑" >😈</a>恶魔的低语：现在登录就可以考试了。
                </h3>
            </div>
        </div>
    </div>
    <div class="d">
        <form action="${pageContext.request.contextPath}/exam/login" method="post">
            <%--<input type="hidden" name="EID" value=${EID}/>--%>
            准考证号：<input type="text" name="PASSNUM" style="width:200px" REQUIRED/>
            考试密码：<input type="password" name="PASSPWD" style="width:200px" REQUIRED/>
            <input type="submit" value="开始考试/查看试卷"/>
        </form>
    </div>

    <div class="row clearfix">
        <div class="col-md-12 column">
            <table class="table table-hover table-striped">
                <thead>
                <tr>
                    <th>考试日期</th>
                    <th>考试时间</th>
                    <th>考试地点</th>
                    <th>准考证号</th>
                    <th>考试密码</th>
                    <th>考试状态（D待考/Y已考）</th>
                    <th>分数</th>
                </tr>
                </thead>
                <tbody>
                <c:forEach var="oneexam" items="${requestScope.get('allexams')}">
                    <tr>
                        <td>${oneexam.getDAYS()}</td>
                        <td>${oneexam.getTIMES()}</td>
                        <td>${oneexam.getPLACE()}</td>
                        <td>${oneexam.getPASSNUM()}</td>
                        <td>${oneexam.getPASSPWD()}</td>
                        <td>${oneexam.getSTATUS()}</td>
                        <td>${oneexam.getGRADE()}</td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </div>
</div>
</body>
</html>